# -*- coding: utf-8 -*-
def genfib (n):
	a = 0
	yield a
	b = 1
	yield b 
	while b < n:
		a, b = b, a+b
		yield b
for k in genfib (8): print k
